﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Icinetic.FeedCategorySample.Entities;
using Icinetic.FeedCategorySample.ViewModel;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

namespace Icinetic.FeedCategorySample
{
    public sealed partial class MenuSnappedControl : UserControl
    {
        public MenuSnappedControl()
        {
            this.InitializeComponent();
        }

        void ItemView_ItemClick(object sender, ItemClickEventArgs e)
        {
            RssItem target = e.ClickedItem as RssItem;
            Frame frame = Window.Current.Content as Frame;
            frame.Navigate(typeof(ArticlePage), target);
        }
    }
}
